﻿@model CloudFranceTriple.Models.ForumPostSet

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.PostEditTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>
        @CloudFranceTriple.WebRole.Properties.Resources.PostEditTitle
    </h1>
    <section>
        @Html.Partial("_InitTinyMceClassic")
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>@CloudFranceTriple.WebRole.Properties.Resources.PostEditTitle</legend>

                @Html.HiddenFor(model => model.Id)
                @Html.HiddenFor(model => model.PostMessage_CreationDate)
                @Html.HiddenFor(model => model.PostMessage_Author)
                @Html.HiddenFor(model => model.PostMessage_AuthorAdressIp)

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicLabel
                </div>
                <div class="editor-field">
                    @Html.DropDownList("ForumTopic_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.ForumTopic_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.PostMessage
                </div>
                <div class="editor-field">
                    <textarea id="PostMessage_Message" name="PostMessage_Message">
                        @Html.DisplayTextFor(model => model.PostMessage_Message)
                    </textarea>
                    @Html.ValidationMessageFor(model => model.PostMessage_Message)
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonSave" />
                </p>
            </fieldset>
        }
        @Html.Partial("_BackToPostByTopicList")
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
